FROM java:8
MAINTAINER sn
ADD lnking-place-0.0.1-SNAPSHOT.jar /web/lnking-place-0.0.1-SNAPSHOT.jar

#设置时区
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

#设置系统环境变量

RUN bash -c 'touch /web/lnking-place-0.0.1-SNAPSHOT.jar'
ENTRYPOINT ["java", "-jar", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005", "/web/lnking-place-0.0.1-SNAPSHOT.jar", "--spring.profiles.active=prod"]
